home *** CD-ROM | disk | FTP | other *** search
/ Aminet 31 / Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso / Aminet / dev / asm / ESA.readme < prev    next >
Text File  |  1999-05-02  |  2KB  |  60 lines

  1. Short:    Extended Syntax Assembly v1.8
  2. Author:   bevilacq@cli.di.unipi.it (Simone Bevilacqua)
  3. Uploader: bevilacq@cli.di.unipi.it (Simone Bevilacqua)
  4. Type:     dev/asm
  5. Requires: 020+ CPU, KS 2.0
  6. Replaces: dev/asm/ESA.lha
  7.  
  8. Ever heard of "inline asm" inside C, Pascal, etc. ?
  9. Well, here we have "inline C, Pascal, etc." inside asm!
  10.  
  11.  
  12. Look below: that's a small sample of ESA code!!!
  13.  
  14.  
  15.                 procedure CpyQtd{a1-a2},d0-d1/a1-a2
  16.                 move.b       (a1)+,d0                 ;get "quote"
  17.                 repeat
  18.                  move.b      (a1)+,d1
  19.  
  20.                  switch.s d1.b
  21.                  -> d0                                ;successful copy
  22.                     clr.b    (a1)                     ;NULL-termination
  23.                     moveq.l  #0,d1                    ;exit loop
  24.                  -> #0                                ;unvalid char, exit loop
  25.                     suba.l   a1,a1                    ;please, let it be...
  26.                  -> #10                               ;unvalid char
  27.                     moveq.l  #0,d1                    ;exit loop
  28.                     suba.l   a1,a1                    ;please, let it be...
  29.                  def
  30.                     move.b   d1,(a2)+                 ;copy char
  31.                  eswitch
  32.  
  33.                 until.s ~d1.b
  34.                 movea.l      a1,a0                    ;new string ptr
  35.  
  36.                 eproc
  37.  
  38.  
  39. ============================= Archive contents =============================
  40.  
  41. Original  Packed Ratio    Date     Time    Name
  42. -------- ------- ----- --------- --------  -------------
  43.    24664   13402 45.6% 04-Feb-80 08:40:24 +ESA
  44.   104560   32312 69.0% 04-Feb-80 08:40:18 +ESA.guide
  45.     2820     973 65.4% 04-Feb-80 08:40:18 +MergeSort.ei
  46.     1724     723 58.0% 04-Feb-80 08:40:18 +QuickSort.ei
  47.     3784    1303 65.5% 04-Feb-80 08:40:18 +readme
  48.     2714    1012 62.7% 04-Feb-80 08:40:18 +data.i
  49.     1219     452 62.9% 04-Feb-80 08:40:18 +defs.i
  50.      898     348 61.2% 04-Feb-80 08:40:18 +main.esa
  51.     6709    2051 69.4% 04-Feb-80 08:40:18 +misc.ei
  52.     6594    2286 65.3% 04-Feb-80 08:40:18 +opt.ei
  53.     1900     858 54.8% 04-Feb-80 08:40:18 +split.ei
  54.      526     283 46.1% 04-Feb-80 08:40:18 +do
  55.    12572    4501 64.1% 04-Feb-80 08:40:18 +sss.guide
  56.      359     231 35.6% 04-Feb-80 08:40:18 +sss.readme
  57.     6672    1970 70.4% 04-Feb-80 08:40:18 +VBR2FAST.esa
  58. -------- ------- ----- --------- --------
  59.   177715   62705 64.7% 14-Apr-99 07:15:46   15 files
  60.